package com.sds.sweng.swat.miplatform.ui.design.figures.logical;

import org.eclipse.draw2d.Figure;
import org.eclipse.draw2d.Graphics;

import com.sds.sweng.swat.miplatform.ui.design.layouts.FlowLayoutEx;

public class LDateTermFigure extends Figure {

	private LCalendarFigure bgnDt;
	private LTextFigure dateTermDash;
	private LCalendarFigure ndDt;

	public LDateTermFigure() {
		FlowLayoutEx layout = new FlowLayoutEx();
		layout.setMinorSpacing(3);
		layout.setMajorSpacing(4);
		setLayoutManager(layout);

		bgnDt = new LCalendarFigure();
		bgnDt.setText(" ____/__/__");
		bgnDt.setSize(100, 20);
		add(bgnDt);

		dateTermDash = new LTextFigure();
		dateTermDash.setText("~");
		dateTermDash.setSize(11, 20);
		add(dateTermDash);

		ndDt = new LCalendarFigure();
		ndDt.setText(" ____/__/__");
		ndDt.setSize(100, 20);
		add(ndDt);

		setSize(217, 20);
	}

	protected void paintFigure(Graphics graphics) {
		super.paintFigure(graphics);
	}

}
